﻿@{
    ViewBag.Title = "theFairist.com";
}
<!DOCTYPE html>
<html xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link rel="icon" type="image/png" href="@Url.Content("~/Content/favicon.png")" />
    <script src="@Url.Content("~/Scripts/jquery.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/global.js")" type="text/javascript"></script>
    
    <script type="text/javascript" src="https://apis.google.com/js/plusone.js">
        { lang: 'fr' }
    </script>

    <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0">
    </script>

</head>

<body>
    <div id="back">
       <div id="header-back">
            <div id="header">
            <div></div>
            </div>
       </div>
       
                <!--<p><a href="@Url.Action("Index", "Home")">#AlmaLogo</a></p>-->
                <div id="body">
                    @{
                        var href = "";
                        var link = "";
                        if (!User.Identity.IsAuthenticated)
                        {
                            link = "S'identifier";
                            href = Url.Action("Connect", "User");
                        }
                        else
                        {
                            link = "Se déconnecter";
                            href = Url.Action("Logout", "User");
                        }
                    }
                    <div id="linksbar"><a href="@href">@link</a>
                    | <a href="@Url.Action("Advanced", "Search")">Recherche</a>
                    | <a href="@Url.Action("Index", "Categories")">Catégories</a> |
                    @if (!User.Identity.IsAuthenticated || Session["UserId"] == null)
                    {
                        <a href="@Url.Action("Connect", "User")">Mon profil</a>@: |
                         <a href="@Url.Action("Connect", "User")">Mon panier</a>
                    }
                    else
                    {
                        <a href="@Url.Action("Edit", "User", new { id = Session["UserId"] })">Mon profil</a>@: |
                     <a href="@Url.Action("Show", "Cart")">Mon panier</a>
                    }
                    </div>

                    
                    
                    @using (Html.BeginForm("Index", "Search", FormMethod.Get, new Dictionary<string, object>() { { "id", "little-search-box" } }))
                    {
                        <img alt="search" src="@Url.Content("~/Content/images/search.png")" />
                        @Html.TextBox("s", "", new Dictionary<string, object>() { { "id", "quickSearch" } })
                    }
                    

                    @* <a id="logo" href="@Url.Action("Index", "Home")"></a> *@
                    @* <img src="@Url.Content("~/Content/images/logo.png")" alt="theFairist" /> *@
                    
                    <div style="height: 18px"></div>

                    @if (ViewContext.Controller.ViewBag.Breadcrumb != null)
                    {

                    <ul id="breadcrumb">
                        @foreach (Alma.BreadcrumbHandler.Item b in ViewContext.Controller.ViewBag.Breadcrumb.Items)
                        {
                            @Html.Raw("<li>")
                       if (b.Controller != null)
                       {
                                 @Html.Raw("<a href=" + Url.Action(b.Action, b.Controller, b.Values) + ">");
                       }
                            @b.Title
                       if (b.Controller != null)
                       {
                                @Html.Raw("</a>")
                       }
                            @Html.Raw("</li>");
                            @*<li><a href="@Url.Action("Index", "Home")">Accueil</a></li>
                            <li>Parcourir</li>*@
                        }
                    </ul>
                    }
                    
                    @RenderBody()
                
                </div>
                @*
            </div>
        </div>*@
        <!-- @{Html.RenderAction("Show", "CategoriesMenu");}  -->

   
        <div id="footer-back">
           <div id="footer-back-2">

            
           </div>

            <div id="footer">
                <div></div>
            </div>

            <div id="footer-content">
                <div class="tricol">
                    <h1>Pour mieux nous connaitre</h1>
                    <ul>
                        <li><a href="#">Qui sommes nous&nbsp;</a></li>
                        <li><a href="#">Vos informations personnelles</a></li>
                        <li><a href="#">Informations légales</a></li>
                    </ul>
                </div>
                <div class="tricol">
                    <h1>Services</h1>
                    <ul>
                        <li>@Html.ActionLink(@"Proposez vos produits sur theFairist", "IndexByUserId", "Shop")</li>
                        <li><a href="#">Devenez Partenaire</a></li>
                        <li><a href="#">Plus</a></li>
                    </ul>
                </div>
                <div class="tricol">
                    <h1>Besoin d'aide&nbsp;?</h1>
                    <ul>
                        <li><a href="#">Fontionnement de theFairist</a></li>
                        <li><a href="#">Aide</a></li>
                    </ul>
                </div>
                <p style="padding: 20px 0 0 0; clear: both; position: relative;" id="copyright">© 2011, theFairist</p>
            </div>

        </div>
    </div>
</body>
</html>
